﻿<Window x:Class="BbsbWebService.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:gui="clr-namespace:BbsbWsGui"
    Icon="MainIcon.ico"
    Title="BBSB Service" Height="664" Width="510">
    <Grid Height="692" Width="485">
        <RadioButton GroupName="appMode" Content="Client Mode" Height="16" HorizontalAlignment="Left" Margin="267,14,0,0" Name="clientModeRdo" VerticalAlignment="Top" Checked="clientModeRdo_Checked" />
        <RadioButton GroupName="appMode" Content="Server Mode" Height="16" HorizontalAlignment="Left" IsChecked="True" Margin="118,14,0,0" Name="serverModeRdo" VerticalAlignment="Top" Checked="serverModeRdo_Checked" />
        <Grid x:Name="ServerPanel">
            <Button Height="23" Margin="10,76,0,0" Name="startBtn" VerticalAlignment="Top" HorizontalAlignment="Left" Width="74" Click="startBtn_Click">Start</Button>
            <Button Height="23" Margin="109,76,95,0" Name="stopBtn" VerticalAlignment="Top" IsEnabled="False" Click="stopBtn_Click">Stop</Button>
            <TextBox Height="23" Margin="63,44,95,0" Name="portTxt" VerticalAlignment="Top" />
            <Label Height="28" Margin="10,44,0,0" Name="serverPortLbl" VerticalAlignment="Top" HorizontalAlignment="Left" Width="53">Port</Label>
            <Rectangle HorizontalAlignment="Right" Margin="0,44,20,0" Name="indicatorRct" Stroke="Black" Width="45" Height="41" VerticalAlignment="Top" Fill="Red" />
            <CheckBox Height="16" Margin="18,107,0,0" Name="logChk" VerticalAlignment="Top" FlowDirection="RightToLeft" HorizontalAlignment="Left" Width="45" Checked="logChk_Checked" Unchecked="logChk_Unchecked">Log</CheckBox>
            <CheckBox Height="16" Margin="118,107,231,0" Name="startServiceOnStart" Unchecked="startServiceOnStart_Unchecked" Checked="startServiceOnStart_Checked" VerticalAlignment="Top" FlowDirection="RightToLeft">Start service on load</CheckBox>
            <CheckBox FlowDirection="RightToLeft" Height="16" HorizontalAlignment="Right" Checked="windowsStartupChk_Checked" Unchecked="windowsStartupChk_Unchecked" Margin="0,107,25,0" Name="windowsStartupChk" VerticalAlignment="Top" Width="196">Load on windows startup</CheckBox>
            
        </Grid>
        <Grid x:Name="ClientPanel" Visibility="Hidden">
            <TextBlock Height="22" Margin="172,34,193,0" Name="connectedToLbl" VerticalAlignment="Top" HorizontalAlignment="Center">Connected to:</TextBlock>
            <TextBlock Height="31" Margin="149.127,54,162,0" Name="ClientLbl" VerticalAlignment="Top" FontSize="20" TextAlignment="Center" HorizontalAlignment="Center" />
            <Button Content="Disonnect" Height="23" HorizontalAlignment="Left" Margin="369,32,0,0" Name="clientDisconnect" VerticalAlignment="Top" Width="75" Click="clientDisconnect_Click" />
        </Grid>
        <Grid x:Name="clientDisconnectedPanel" Visibility="Hidden">
            <TextBox Height="23" HorizontalAlignment="Left" Margin="147,40,0,0" Name="clientNameTxt" VerticalAlignment="Top" Width="120" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="147,73,0,0" Name="clientPortTxt" VerticalAlignment="Top" Width="120" />
            <Label Content="Computer Name" Height="28" HorizontalAlignment="Left" Margin="40,38,0,0" Name="label1" VerticalAlignment="Top" />
            <Label Content="Port" Height="28" HorizontalAlignment="Left" Margin="106,73,0,0" Name="label2" VerticalAlignment="Top" />
            <Button Content="Connect" Height="23" HorizontalAlignment="Left" Margin="369,72,0,0" Name="clientConnect" VerticalAlignment="Top" Width="75" Click="clientConnect_Click" />
        </Grid>
        <TabControl Margin="19,133,19,81" Name="tabControl1">
            <TabItem Header="Items" FontSize="14" FontWeight="Normal" Foreground="#FF323232">
                <gui:ItemsTab x:Name="itemsTab" />
            </TabItem>
            <TabItem Header="Groups/zones" FontSize="14" FontWeight="Normal" Foreground="#FF323232">
                <gui:GroupsTab x:Name="groupsTab" />
            </TabItem>
            <TabItem Header="Schedule Tasks" FontSize="14" FontWeight="Normal" Foreground="#FF323232">
                <gui:TaskTab x:Name="tasksTab" />
            </TabItem>
        </TabControl>
    </Grid>
</Window>
